<!doctype html>
<html>
<head>

  <title>dom-if</title>

  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
  <link rel="import" href="../../polymer.html">
  <link rel="import" href="../../src/lib/template/dom-if.html">

</head>
<body>

  <dom-module id="x-inner">
    <style>
      :host {
        display: block;
        border: 1px dashed green;
        margin: 8px;
        padding: 8px;
      }
    </style>
    <template>
      x-inner: <content></content>
    </template>
    <script>
      Polymer({
        is: 'x-inner',
      });
    </script>
  </dom-module>
  

  <dom-module id="x-test">
    <style>
      :host {
        display: block;
        border: 1px dashed orange;
        margin: 8px;
        padding: 8px;
      }
    </style>
    <template>
      <template is="dom-if" if>
        <x-inner>
          x-test: <content></content>
        </x-inner>
      </template>

    </template>
  </dom-module>

  <script>
  HTMLImports.whenReady(function() {
    Polymer({
      is: 'x-test',
      properties: {
        value: {
          value: 'stamped!'
        }
      }
    });
  });
  </script>

  <x-test>
    I see you!
  </x-test>

</body>
</html>
